// componnets/cImage/cImage.js
import config from '../../config'

Component({

  /**
   * 组件的属性列表
   */
  properties: {
    fileName: '',
    width: '100%',
    height: '200rpx',
    fill:'#f2f2f2',
    mode:'aspectFill',
    scale:1
  },

  /**
   * 组件的初始数据
   */
  data: {
    imagePrefix: config.imagePrefix,
    showImage: false,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    loaded() {
      this.setData({
        showImage: true
      })
    }
  }
})